package com.md.youyouhui.net.repo;

import android.arch.lifecycle.LiveData;

import com.md.youyouhui.common.Resource;
import com.md.youyouhui.net.ApiServiceFac;
import com.md.youyouhui.net.response.DirectPayResponse;
import com.md.youyouhui.utils.calladapter.ResourceConvertUtils;

import java.util.List;

/**
 * Created by AdministratorZJ
 * on 2018/5/25.
 */

public class DirectPayRepo {
    private static DirectPayRepo INSTANCE;

    public static DirectPayRepo newInstance() {
        if (null == INSTANCE) {
            INSTANCE = new DirectPayRepo();
        }
        return INSTANCE;
    }


    public LiveData<Resource<List<DirectPayResponse>>> directPay() {

        return ResourceConvertUtils.convertResource(ApiServiceFac.get().directPay());
    }


}
